home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / widgets / include / GL / MesaDrawingAreaP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  2.3 KB  |  77 lines

  1. /* MesaDrawingAreaP.h -- Private header file for the Mesa widget
  2.    Copyright (C) 1995 Thorsten.Ohl @ Physik.TH-Darmstadt.de
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2 of the License, or (at your option) any later version.
  8.  
  9.    This library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public
  15.    License along with this library; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18.    $Id: MesaDrawingAreaP.h,v 1.7 1995/05/19 20:30:59 ohl Exp $
  19.  */
  20.  
  21. #ifndef _MesaDrawingAreaP_h
  22. #define _MesaDrawingAreaP_h
  23.  
  24. #include <GL/GLwDrawAP.h>
  25. #include <GL/MesaDrawingArea.h>
  26.  
  27. typedef struct
  28.   {
  29.     char *RCS_Id;
  30.     Widget lists_root;
  31.   }
  32. MesaDrawingAreaClassPart;
  33.  
  34. typedef struct _MesaDrawingAreaClassRec
  35.   {
  36.     CoreClassPart core_class;
  37.     GLwDrawingAreaClassPart glwDrawingArea_class;
  38.     MesaDrawingAreaClassPart mesaDrawingArea_class;
  39.   }
  40. MesaDrawingAreaClassRec;
  41. extern MesaDrawingAreaClassRec mesaDrawingAreaClassRec;
  42.  
  43. typedef struct
  44.   {
  45.     Boolean ximage;
  46.     XMesaContext context;
  47.     Boolean share_lists;
  48.     Widget share_lists_with;
  49.   }
  50. MesaDrawingAreaPart;
  51.  
  52. typedef struct _MesaDrawingAreaRec
  53.   {
  54.     CorePart core;
  55.     GLwDrawingAreaPart glwDrawingArea;
  56.     MesaDrawingAreaPart mesaDrawingArea;
  57.   }
  58. MesaDrawingAreaRec;
  59.  
  60. #define MesaRGBA(_widget) \
  61.    (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.rgba)
  62. #define MesaDoublebuffer(_widget) \
  63.    (((MesaDrawingAreaWidget)_widget)->glwDrawingArea.doublebuffer)
  64. #define MesaContext(_widget) \
  65.    (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.context)
  66. #define MesaXImage(_widget) \
  67.    (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.ximage)
  68. #define MesaShareLists(_widget) \
  69.    (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.share_lists)
  70. #define MesaShareListsWith(_widget) \
  71.    (((MesaDrawingAreaWidget)_widget)->mesaDrawingArea.share_lists_with)
  72.  
  73. #define MesaListsRoot \
  74.    (mesaDrawingAreaClassRec.mesaDrawingArea_class.lists_root)
  75.  
  76. #endif /* _MesaDrawingAreaP_h */
  77.